# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hharp
pkgver=1beta
pkgrel=7
groups=('blackarch' 'blackarch-networking' 'blackarch-spoof')
pkgdesc='This tool can perform man-in-the-middle and switch flooding attacks. It
has 4 major functions, 3 of which attempt to man-in-the-middle one or more computers on a network with a passive method or flood type method.'
arch=('any')
url='http://packetstormsecurity.com/files/81368/Hackers-Hideaway-ARP-Attack-Tool.html'
license=('custom:unknown')
depends=('python2' 'python2-scapy')
source=('https://dl.packetstormsecurity.net/UNIX/utilities/hharp.py.tar.bz2')
sha512sums=('383e88f8cb545670c7f5f35bf9be44f5f67f2215c10015b8040f5171d71880ec820a1c1b920aeb3ab512369508e03ae689467e017477f0186ec95a0e2efb2255')

prepare() {
  sed -i 's|/usr/bin/env python|/usr/bin/env python2|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

